
asm02:     file format elf32-littlearm


Disassembly of section .init:

0001030c <_init>:
   1030c:	e1a0c00d 	mov	ip, sp
   10310:	e92ddff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc}
   10314:	e24cb004 	sub	fp, ip, #4
   10318:	e91baff0 	ldmdb	fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}

Disassembly of section .plt:

0001031c <printf@plt-0x14>:
   1031c:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)
   10320:	e59fe004 	ldr	lr, [pc, #4]	; 1032c <_init+0x20>
   10324:	e08fe00e 	add	lr, pc, lr
   10328:	e5bef008 	ldr	pc, [lr, #8]!
   1032c:	000102c8 	.word	0x000102c8

00010330 <printf@plt>:
   10330:	e28fc600 	add	ip, pc, #0, 12
   10334:	e28cca10 	add	ip, ip, #16, 20	; 0x10000
   10338:	e5bcf2c8 	ldr	pc, [ip, #712]!	; 0x2c8

0001033c <abort@plt>:
   1033c:	e28fc600 	add	ip, pc, #0, 12
   10340:	e28cca10 	add	ip, ip, #16, 20	; 0x10000
   10344:	e5bcf2c0 	ldr	pc, [ip, #704]!	; 0x2c0

00010348 <write@plt>:
   10348:	e28fc600 	add	ip, pc, #0, 12
   1034c:	e28cca10 	add	ip, ip, #16, 20	; 0x10000
   10350:	e5bcf2b8 	ldr	pc, [ip, #696]!	; 0x2b8

00010354 <__deregister_frame_info@plt>:
   10354:	e28fc600 	add	ip, pc, #0, 12
   10358:	e28cca10 	add	ip, ip, #16, 20	; 0x10000
   1035c:	e5bcf2b0 	ldr	pc, [ip, #688]!	; 0x2b0

00010360 <__uClibc_main@plt>:
   10360:	e28fc600 	add	ip, pc, #0, 12
   10364:	e28cca10 	add	ip, ip, #16, 20	; 0x10000
   10368:	e5bcf2a8 	ldr	pc, [ip, #680]!	; 0x2a8

0001036c <__register_frame_info@plt>:
   1036c:	e28fc600 	add	ip, pc, #0, 12
   10370:	e28cca10 	add	ip, ip, #16, 20	; 0x10000
   10374:	e5bcf2a0 	ldr	pc, [ip, #672]!	; 0x2a0

Disassembly of section .text:

00010378 <_start>:
   10378:	e3a0b000 	.word	0xe3a0b000
   1037c:	e3a0e000 	.word	0xe3a0e000
   10380:	e49d1004 	.word	0xe49d1004
   10384:	e1a0200d 	.word	0xe1a0200d
   10388:	e52d2004 	.word	0xe52d2004
   1038c:	e52d0004 	.word	0xe52d0004
   10390:	e59fc010 	.word	0xe59fc010
   10394:	e52dc004 	.word	0xe52dc004
   10398:	e59f000c 	.word	0xe59f000c
   1039c:	e59f300c 	.word	0xe59f300c
   103a0:	eaffffee 	.word	0xeaffffee
   103a4:	ebffffe4 	.word	0xebffffe4
   103a8:	00010518 	.word	0x00010518
   103ac:	000104bc 	.word	0x000104bc
   103b0:	0001030c 	.word	0x0001030c

000103b4 <deregister_tm_clones>:
   103b4:	e59f301c 	ldr	r3, [pc, #28]	; 103d8 <deregister_tm_clones+0x24>
   103b8:	e59f001c 	ldr	r0, [pc, #28]	; 103dc <deregister_tm_clones+0x28>
   103bc:	e0603003 	rsb	r3, r0, r3
   103c0:	e3530006 	cmp	r3, #6
   103c4:	912fff1e 	bxls	lr
   103c8:	e59f3010 	ldr	r3, [pc, #16]	; 103e0 <deregister_tm_clones+0x2c>
   103cc:	e3530000 	cmp	r3, #0
   103d0:	012fff1e 	bxeq	lr
   103d4:	e12fff13 	bx	r3
   103d8:	00020623 	.word	0x00020623
   103dc:	00020620 	.word	0x00020620
   103e0:	00000000 	.word	0x00000000

000103e4 <register_tm_clones>:
   103e4:	e59f1024 	ldr	r1, [pc, #36]	; 10410 <register_tm_clones+0x2c>
   103e8:	e59f0024 	ldr	r0, [pc, #36]	; 10414 <register_tm_clones+0x30>
   103ec:	e0601001 	rsb	r1, r0, r1
   103f0:	e1a01141 	asr	r1, r1, #2
   103f4:	e0811fa1 	add	r1, r1, r1, lsr #31
   103f8:	e1b010c1 	asrs	r1, r1, #1
   103fc:	012fff1e 	bxeq	lr
   10400:	e59f3010 	ldr	r3, [pc, #16]	; 10418 <register_tm_clones+0x34>
   10404:	e3530000 	cmp	r3, #0
   10408:	012fff1e 	bxeq	lr
   1040c:	e12fff13 	bx	r3
   10410:	00020620 	.word	0x00020620
   10414:	00020620 	.word	0x00020620
   10418:	00000000 	.word	0x00000000

0001041c <__do_global_dtors_aux>:
   1041c:	e92d4010 	push	{r4, lr}
   10420:	e59f402c 	ldr	r4, [pc, #44]	; 10454 <__do_global_dtors_aux+0x38>
   10424:	e5d43000 	ldrb	r3, [r4]
   10428:	e3530000 	cmp	r3, #0
   1042c:	18bd8010 	popne	{r4, pc}
   10430:	ebffffdf 	bl	103b4 <deregister_tm_clones>
   10434:	e59f301c 	ldr	r3, [pc, #28]	; 10458 <__do_global_dtors_aux+0x3c>
   10438:	e3530000 	cmp	r3, #0
   1043c:	0a000001 	beq	10448 <__do_global_dtors_aux+0x2c>
   10440:	e59f0014 	ldr	r0, [pc, #20]	; 1045c <__do_global_dtors_aux+0x40>
   10444:	ebffffc2 	bl	10354 <__deregister_frame_info@plt>
   10448:	e3a03001 	mov	r3, #1
   1044c:	e5c43000 	strb	r3, [r4]
   10450:	e8bd8010 	pop	{r4, pc}
   10454:	00020620 	.word	0x00020620
   10458:	00000000 	.word	0x00000000
   1045c:	0001052c 	.word	0x0001052c

00010460 <frame_dummy>:
   10460:	e59f3040 	ldr	r3, [pc, #64]	; 104a8 <frame_dummy+0x48>
   10464:	e92d4010 	push	{r4, lr}
   10468:	e3530000 	cmp	r3, #0
   1046c:	0a000002 	beq	1047c <frame_dummy+0x1c>
   10470:	e59f1034 	ldr	r1, [pc, #52]	; 104ac <frame_dummy+0x4c>
   10474:	e59f0034 	ldr	r0, [pc, #52]	; 104b0 <frame_dummy+0x50>
   10478:	ebffffbb 	bl	1036c <__register_frame_info@plt>
   1047c:	e59f0030 	ldr	r0, [pc, #48]	; 104b4 <frame_dummy+0x54>
   10480:	e5903000 	ldr	r3, [r0]
   10484:	e3530000 	cmp	r3, #0
   10488:	1a000001 	bne	10494 <frame_dummy+0x34>
   1048c:	e8bd4010 	pop	{r4, lr}
   10490:	eaffffd3 	b	103e4 <register_tm_clones>
   10494:	e59f301c 	ldr	r3, [pc, #28]	; 104b8 <frame_dummy+0x58>
   10498:	e3530000 	cmp	r3, #0
   1049c:	0afffffa 	beq	1048c <frame_dummy+0x2c>
   104a0:	e12fff33 	blx	r3
   104a4:	eafffff8 	b	1048c <frame_dummy+0x2c>
   104a8:	00000000 	.word	0x00000000
   104ac:	00020624 	.word	0x00020624
   104b0:	0001052c 	.word	0x0001052c
   104b4:	00020538 	.word	0x00020538
   104b8:	00000000 	.word	0x00000000

000104bc <main>:
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

void main()
{
   104bc:	e92d4800 	push	{fp, lr}
   104c0:	e28db004 	add	fp, sp, #4
   104c4:	e24dd010 	sub	sp, sp, #16
	int a, b, c;

	a = 1;
   104c8:	e3a03001 	mov	r3, #1			@ r3 = 1
   104cc:	e50b3008 	str	r3, [fp, #-8]		@ 1 ---> fp - 8
	b = 1;
   104d0:	e3a03001 	mov	r3, #1			@ r3 = 1
   104d4:	e50b300c 	str	r3, [fp, #-12]		@ 1 ---> fp - 12
	c = a + b;
   104d8:	e51b2008 	ldr	r2, [fp, #-8]		@ r2 = 1
   104dc:	e51b300c 	ldr	r3, [fp, #-12]		@ r3 = 1
   104e0:	e0823003 	add	r3, r2, r3		@ r3 = 1 + 1
   104e4:	e50b3010 	str	r3, [fp, #-16]		@ r3 ---> fp - 16, c var
	
	printf("%d\n", c);
   104e8:	e51b3010 	ldr	r3, [fp, #-16]		@ c var
   104ec:	e1a01003 	mov	r1, r3
   104f0:	e59f001c 	ldr	r0, [pc, #28]	; 10514 <main+0x58>
   104f4:	ebffff8d 	bl	10330 <printf@plt>
	write(1, &c, 1);
   104f8:	e24b3010 	sub	r3, fp, #16
   104fc:	e3a02001 	mov	r2, #1
   10500:	e1a01003 	mov	r1, r3
   10504:	e3a00001 	mov	r0, #1
   10508:	ebffff8e 	bl	10348 <write@plt>
}
   1050c:	e24bd004 	sub	sp, fp, #4
   10510:	e8bd8800 	pop	{fp, pc}
   10514:	00010528 	.word	0x00010528

Disassembly of section .fini:

00010518 <_fini>:
   10518:	e1a0c00d 	mov	ip, sp
   1051c:	e92ddff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc}
   10520:	e24cb004 	sub	fp, ip, #4
   10524:	e91baff0 	ldmdb	fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}
